

        <!-- page specific plugin styles -->
        <link rel="stylesheet" href="${ctx}/static/admin/assets/css/jquery-ui.custom.css"/>
        <link rel="stylesheet" href="${ctx}/static/admin/assets/css/chosen.css"/>
        <link rel="stylesheet" href="${ctx}/static/admin/assets/css/datepicker.css"/>

        <script type="text/javascript">
            $(document).ready(function () {

                // 删除按钮
                $("a.delete").click( function (e) {
                    e.preventDefault();
                    submitClickListener(this,e,"删除");
                    return false;
                });

                $("#categoryParentId").change(function () {
                    //清除二级下拉列表
                    $("#categoryId").empty();
                    if($(this).val() !=0){

                        $("#categoryId").append($("<option/>").text("--请选择二级分类--").attr("value","0"));
                        //要请求的二级下拉JSON获取页面
                        var url="${ctx}/category/categoryList.do";
                        //将选中的一级下拉列表项的id传过去
                        $.getJSON(url, { parentId:$(this).val() },function (data) {
                            //对请求返回的JSON格式进行分解加载
                            $(data.data).each(function () {
                                $("#categoryId").append($("<option/>").text(this.categoryName).attr("value",this.id));
                            });
                        });
                    }
                });

            });

            function submitOperate(url,operate){
                submitClickListener(url,operate);
            }

            function submitClickListener(url,title){
                bootbox.confirm({
                            message: "确定"+title+"该版本?",
                            buttons: {
                                confirm: {
                                    label: "确定",
                                    className: "btn-primary btn-sm"
                                },
                                cancel: {
                                    label: "取消",
                                    className: "btn-sm"
                                }
                            },
                            callback: function (result) {
                                if (result) {
                                    $.get(url, { },function(data){
                                        if(data){
                                            window.location.href=window.location.href;
                                        }
                                    });
                                }
                            }
                        }
                );
            }
        </script>
            <table id="contentTable" class="table table-striped table-bordered table-hover">
                <thead>
                <tr>
                    <th width="62" align="center">ICON</th>
                    <th width="40" align="center">软件版本编号</th>
                    <th width="60" align="left">软件具体名称</th>
                    <th width="60" align="left">软件包名</th>
                    <th width="40" align="left">版本名称</th>
                    <th width="40" align="left">下载量</th>
                    <th width="40" align="left">分类名称</th>
                    <th width="40" align="left">最新版本</th>
                    <th width="40" align="left">审核人</th>
                    <th width="40" align="left">上架时间</th>
                    <th width="70" align="center">操作</th>
                </tr>
                </thead>
                <tbody>
                    <#list softItems as softItem>
                        <#if softItem??>
                            <tr>
                                <td><img width="62" src="${staticHost}${softItem.iconUrl!}"  alt="未上传ICON图" /></td>
                                <td width="60" align="left">${softItem.softItemId!}</td>
                                <td width="40" align="left">${softItem.softName!}</td>
                                <td width="60" align="left">${softItem.packageName!}</td>
                                <td width="40" align="left">${softItem.versionName!}</td>
                                <td width="40" align="left">${softItem.vdownloadNumber!}</td>
                                <td width="40" align="left">${softItem.categoryId!}</td>
                                <td width="40" align="left">${softItem.isLastVersion!}</td>
                                <td width="40" align="left">${softItem.checkAdminName!}</td>
                                <td width="40" align="left">${softItem.publishTimeShow!}</td>
                                <td>
                                    <div class="hidden-sm hidden-xs action-buttons">
                                        <#if softItem.state != 3 >
                                            <a class="green tooltip-warning upState" onclick="submitOperate('${ctx}/admin/soft/upSoftItem.do?id=${softItem.softItemId!}','上架');return false;" href=""  data-rel="tooltip" > <span class="label label-warning">上架</span></a>
                                            <#else>
                                                <a class="green tooltip-warning downState" onclick="submitOperate('${ctx}/admin/soft/downSoftItem.do?id=${softItem.softItemId!}','下架');return false;" href="" data-rel="tooltip"  > <span class="label label-warning">下架</span></a>
                                        </#if>
                                        <#if softItem.state == 3 >
                                            <a class="green tooltip-warning hiddenState"   onclick="submitOperate('${ctx}/admin/soft/hiddenSoftItem.do?id=${softItem.softItemId!}','隐藏');return false;"  href=""  data-rel="tooltip"  > <span class="label label-info">隐藏</span></a>
                                            <#else>
                                                <a class="green tooltip-warning showState" onclick="submitOperate('${ctx}/admin/soft/showSoftItem.do?id=${softItem.softItemId!}','展示');return false;"  href=""  data-rel="tooltip"  > <span class="label label-info">展示</span></a>
                                        </#if>
                                        <a class="red tooltip-error delete"  onclick="submitOperate('${ctx}/admin/soft/delSoftItem.do?id=${softItem.softItemId!}','删除');return false;"  href="" data-rel="tooltip" > <span class="label label-danger">删除</span> </a>

                                    </div>
                                </td>

                            </tr>
                        </#if>
                    </#list>
                </tbody>
            </table>
    <div id="editModal" class="modal fade">
        <div class="modal-dialog"style="width: 1200px;">
            <div class="modal-content">
            </div>
        </div>
    </div>
